package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_wrong_set
 */
@TableName(value ="t_wrong_set")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WrongSet implements Serializable {
    /**
     * key自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 题目id
     */
    @TableField(value = "issue_id")
    private Integer issueId;

    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 已答对次数（满三次移除
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 上传日期
     */
    @TableField(value = "upload_time", fill = FieldFill.INSERT_UPDATE)
    private Date uploadTime;

    /**
     * 0未删除，1已删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(value = "course_id")
    private Integer courseId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}